package com.guigu.pd.oms.service.impl;

import com.guigu.pd.serviceapi.pojo.OrderLocationEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.oms.dao.OrderLocationDao;
import com.guigu.pd.oms.service.OrderLocationService;


@Service("orderLocationService")
public class OrderLocationServiceImpl extends ServiceImpl<OrderLocationDao, OrderLocationEntity> implements OrderLocationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderLocationEntity> page = this.page(
                new Query<OrderLocationEntity>().getPage(params),
                new QueryWrapper<OrderLocationEntity>()
        );

        return new PageUtils(page);
    }

}